<?php


namespace Xiaoguai\DesignPattern\DP014;


abstract class Colleague
{
    /**
     * @var MediatorInterface $mediator
     */
    protected $mediator;


    /**
     * @param MediatorInterface $mediator
     */
    public function setMediator(MediatorInterface $mediator): void
    {
        $this->mediator = $mediator;
    }

    abstract public function receive();

    abstract public function send();

}